package karileet.meeting.profile.model.ui;

import karileet.meeting.profile.model.ComplexModel;
import android.widget.CheckBox;
import android.widget.TextView;

/**
 * Class representing layout object, meanwhile reflecting RowModel 
 * @author markus
 *
 */
public class ComplexModelHolder {
    private TextView title;
    private TextView description;
    private TextView time;
    private CheckBox cb;
    private ComplexModel complexModel;
    
    public ComplexModel getTag() {
    	return complexModel; 
    }
    
    public void setTag(ComplexModel complexModel) {
    	this.complexModel = complexModel;
    }
    
	public TextView getTitle() {
		return title;
	}
	public void setTitleText(CharSequence text) {
		this.title.setText(text);
	}
	public void setTitle(TextView title) {
		this.title = title;
	}
	public TextView getTime() {
		return time;
	}
	public void setTime(TextView time) {
		this.time = time;
	}
	public void setTimeText(CharSequence text) {
		this.time.setText(text);
	}
	public TextView getDescription() {
		return description;
	}
	public void setDescription(TextView description) {
		this.description = description;
	}
	public void setDescriptionText(CharSequence text) {
		this.description.setText(text);
	}
	public CheckBox getCb() {
		return cb;
	}
	public void setCb(CheckBox cb) {
		this.cb = cb;
	}	
	public void check(boolean checked) {
		this.cb.setChecked(checked);
	}
}
